package com.wbl.train.gateway;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

@ComponentScan("com.wbl.train")
@SpringBootApplication
public class GatewayTrainApplication {

    private static final Logger Log = LoggerFactory.getLogger(GatewayTrainApplication.class);

    public static void main(String[] args) {
        SpringApplication memberApp = new SpringApplication(GatewayTrainApplication.class);
        ConfigurableEnvironment environment = memberApp.run(args).getEnvironment();
        Log.info("启动成功！！");
        Log.info("网关地址：\thttp://127.0.0.1:{}",environment.getProperty("server.port"));
    }

}
